import request from "@/utils/request";
import type {AjaxResult} from "@/utils/request"
const base = '/base/difficulty'
/**
 * 获取题库
 * @returns Promise
 */
export const getDifficultyList = () : Promise<AjaxResult<Array<Difficulty>>> => {
    return request({
        url: `${base}/list`,
        method: 'get'
    })
}


type Difficulty = {
    id : string,
    name : string,
    icon : string
}

export type  {
    Difficulty
}
